//
// Created by zhuyijun on 2021/8/4.
//

#include <iostream>

using namespace std;

int main() {
    cout << "enter a word : ";
    string word;
    cin >> word;
    for (int i = word.size() -1; i >= 0; i--) {
        cout << word[i];
    }
    return 0;
}